-- cmd_upgrade_pet_rank
-- Created by chengb Jan/19/2015
-- 英雄升阶

function Operation.cmd_upgrade_pet_rank(classId)
    -- 客户端自行升阶
    if not PetM.upgradeRank(classId) then
        return;
    end
    
    -- 需要进行同步
    local v = { ["class_id"] = classId, };
    SyncM.addMessage("CMD_UPGRADE_PET_RANK", v);
    SyncM.startSync();
end